/**
 * 路由配置
 */
export default [
  {
    path: '/',
    name: 'main',
    component: () => import('@/view/main.vue'),
    children: [
      {
        path: '/oss',
        name: 'oss',
        component: () => import('@/components/outpage/outpage.vue')
      },
      {
        path: '/nacos',
        name: 'nacos',
        component: () => import('@/components/outpage/outpage.vue')
      },
      {
        path: '/table',
        name: 'table',
        component: () => import('@/view/table.vue')
      },
      {
        path: '/monitor',
        name: 'monitor',
        component: () => import('@/view/monitor.vue')
      },
      {
        path: '/file',
        name: 'file',
        component: () => import('@/view/file.vue')
      },
      {
        path: '/discovery',
        name: 'discovery',
        component: () => import('@/view/discovery.vue')
      },
      {
        path: '/config',
        name: 'config',
        component: () => import('@/view/configInfo.vue')
      },
      {
        path: '/user',
        name: 'user',
        component: () => import('@/view/system/user.vue')
      },
      {
        path: '/menu',
        name: 'menu',
        component: () => import('@/view/system/menu.vue')
      },
      {
        path: '/role',
        name: 'role',
        component: () => import('@/view/system/role.vue')
      },
      {
        path: '/permission',
        name: 'permission',
        component: () => import('@/view/system/permission.vue')
      },
      {
        path: '/menu2',
        name: 'menu2',
        component: () => import('@/view/test/menu2.vue')
      },
    ]
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/view/login.vue')
  },
  {
    path: '/401',
    name: 'no_access',
    component: () => import('@/view/error/401.vue')
  },
  {
    path: '*',
    name: '404',
    component: () => import('@/view/error/404.vue')
  }
]
